package com.xyh.transaction.mapper;

import com.xyh.transaction.entity.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface AddressMapper {
    List<Address> findByUserId(Integer userId);

    void insert(Address address);

    void updateDefaultByUserId(Integer userId, Integer isDefault);

    Address findById(Integer addressId);

    void deleteById(Integer id);

    void update(Address address);
}
